<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<meta title="template local_template.html">
<title>Language negociation</title>
</head>
<body>
<div id="main_title">Language negociation</div>
<div id='content'>

<h2>Abstract</h2>

<p>Some websites implement a language negotiation system, to provide a content in the 
visitor's language. This is a part of the 
<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec12.html" title="external_link">content negotiation</a>, and 
<a href="http://httpd.apache.org/docs/1.3/content-negotiation.html" title="external_link">use the <q>Accept-Language</q> header</a>.</p>

<p>Crunchy can forward received <q>Accept-Language</q> headers to a remote site, 
to get it in the same language than you would just using the browser instead of Crunchy. 
The default state for Crunchy is:</p>
<pre title="interpreter">
crunchy.forward_accept_language = True # enabled by default!
</pre>
<p>which you can disable:</p>
<pre title="interpreter">
crunchy.forward_accept_language = False
</pre>
<p>or, use the more convenient:</p>
<div title="preferences forward_accept_language">language negociation</div>


<h2>How to choose the prefered language within a browser?</h2>

<p>Web browsers allow to set a list of prefered languages, sorted by priority. 
For Mozilla Firefox, the choice is available in Edit > Preferences > Content > Languages 
(or Tools > Options > Content >Languages, etc., depending of the system).</p>

<h2>Sites known to use language negotiation</h2>

<ul>
    <li><a href="http://www.mozilla-europe.org/">Mozilla Europe</a></li>
    <li><a href="http://httpd.apache.org/docs/2.2/">The Apache documentation</a></li>
    <li><a href="http://moinmo.in/">MoinMoin</a> wikis localize some part of the interface (like the <q>login</q> button)</li>
</ul>
</div>
</body>
</html>
